﻿<UserControl x:Class="VKontakteClient.MiniProfileControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Local="clr-namespace:VKontakteClient"
HorizontalAlignment="Stretch"
             >
    <UserControl.Resources>
        <Local:DateConverter x:Key="LDateConverter" />
        <Local:VisibilityConverter x:Key="BoolToVisibility" />
    </UserControl.Resources>
    <Border CornerRadius="5" BorderBrush="Black" BorderThickness="1" Background="AliceBlue"  HorizontalAlignment="Stretch" MinWidth="500">
        <StackPanel Margin="5" HorizontalAlignment="Stretch">
            <Label Content="Закрытый профиль" Visibility="{Binding Path=ClosedProfile, Converter={StaticResource BoolToVisibility}}" Height="25" HorizontalAlignment="Stretch"/>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Border CornerRadius="2" BorderBrush="Gray" BorderThickness="1" HorizontalAlignment="Center" >
                    <Image Source="{Binding Path=Photo.Uri}" HorizontalAlignment="Center" MaxHeight="100" />
                </Border>
                <ScrollViewer Grid.Column="1" Margin="10" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                    <StackPanel Orientation="Vertical" >
                        <TextBox IsReadOnly="True" Background="Transparent" BorderThickness="0" Text="{Binding Mode=OneWay}" Margin="5" />
                        <Expander Header="Образование (в разработке)" IsExpanded="True" IsEnabled="False"></Expander>
                    </StackPanel>
                </ScrollViewer>
            </Grid>
        </StackPanel>
    </Border>
</UserControl>
